import request from '@/utils/request'

// 获取列表广告位/轮播图/新鲜事/会员轮播图
export function getAdList(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupAdProvider/1.0.0/getAdList.html',
    method: 'post',
    data: query
  })
}

// 获取列表营销位
export function getMarketingList(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupAdProvider/1.0.0/getSixAdList.html',
    method: 'post',
    data: query
  })
}

// 获取列表-会员营销位
export function getVipMarketingList(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupAdProvider/1.0.0/getMemberAdList.html',
    method: 'post',
    data: query
  })
}

// 添加广告位/轮播图/营销位/新鲜事
export function addAd(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupAdProvider/1.0.0/insertAd.html',
    method: 'post',
    data: query
  })
}

// 修改广告位/轮播图/营销位/新鲜事 -上架
export function updateAd(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupAdProvider/1.0.0/updateAd.html',
    method: 'post',
    data: query
  })
}

// 删除广告位/轮播图/营销位/新鲜事
export function deleteAd(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupAdProvider/1.0.0/deleteAdById.html',
    method: 'post',
    data: query
  })
}

// 添加营销位 -新
export function insertSixAd(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupAdProvider/1.0.0/insertSixAd.html',
    method: 'post',
    data: query
  })
}

// 编辑营销位 -新
export function updateSixAd(query) {
  return request({
    url: '/com.mmk.groupservice.api.AdminGroupAdProvider/1.0.0/updateSixAd.html',
    method: 'post',
    data: query
  })
}
